load("//bazel_utils:python.bzl", "pytest_test")

pytest_test(
    name = "cairo_blake2s_test",
    srcs = [
        "blake2s_test.py",
    ],
    data = [
        "blake2s_test.cairo",
    ],
    visibility = ["//visibility:public"],
    deps = [
        ":blake2s_test_utils",
        "//src/starkware/cairo/common:cairo_common_lib",
        "//src/starkware/cairo/common:cairo_function_runner_lib",
        "//src/starkware/cairo/lang:cairo_constants_lib",
        "//src/starkware/cairo/lang/builtins:cairo_run_builtins_lib",
        "//src/starkware/cairo/lang/compiler:cairo_compile_lib",
        "//src/starkware/python:starkware_python_utils_lib",
    ],
)

py_library(
    name = "blake2s_test_utils",
    srcs = [
        "blake2s_test_utils.py",
    ],
    visibility = ["//visibility:public"],
)

exports_files([
    "blake2s.cairo",
    "blake2s_utils.py",
    "packed_blake2s.cairo",
])
